package ar.com.vates.cola_lista;

import java.util.ArrayList;

public class PilaLIFO implements Lista<Object> {
	
	ArrayList<Object> pila = new ArrayList<>();

	
	public void cargar(Object o) {
		pila.add(o);
	}

	public Object sacar() {
		return pila.remove(pila.size()-1);
	}

}
